/* AbstractFrame.java 
* Created on Dec 20, 2012 
* Author:Mr.Viet
* Phone: 01683430426
* Email: phamvanvietcdhd@gmail.com
*/ 
package com.icode.utils; 

import java.awt.Container;

import javax.swing.JDialog;
import javax.swing.JFrame;

public abstract class AbstractDialog extends JDialog {
	protected Container parent;
	
	public AbstractDialog(Container parent) {
		this.parent = parent;
	}
	
	public void showFrom(){
		this.setSize(400,300);
		this.setLocationRelativeTo(this.parent);
		this.setVisible(true);
	}
	public abstract void createForm();

}
